<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />

</head>

<body>

	<div class="place">
	<span>位置：</span>
	<ul class="placeul">
	<li><a>首页</a></li>
	<li><a>工单管理</a></li>
	<li><a>创建工单</a></li>
	</ul>
	</div>

	<div class="formbody">

	<div class="formtitle"><span>创建工单</span></div>
	  <form id="form1" name="form1" method="post" enctype="multipart/form-data" action="{:U('/Home/Workorder/workorder_add')}" onsubmit="return form1_submit();">
	<ul class="forminfo">
	<li><label>工单名称</label><input name="workorder_name" id="workorder_name" type="text" class="dfinput" value="" /><i></i></li>
	<li><label>工单内容</label><textarea style="width: 300px; height: 100px" id="workorder_content" name="workorder_content" class="lginput"></textarea><i></i></li>
	<li>
	<div style="width: 86px;line-height: 34px;display: block;float: left;">指定部门</div>
	<div class="dowebok" style="float: left;">
	<select name="department" id="department" >
	<option value="">请选择</option>
	<option value="0">管理员</option>
	<option value="3">市场部</option>
	<option value="4">运营部</option>
	</select>
	</div>
	</li>
	<li><br><br><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认"/></li>
	</ul>
	  </form>

	</div>


</body>
<script src="__PUBLIC__/js/jquery1.8.3.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script>
$(function() {
	$('#department').comboSelect();
});
</script>
<script type="text/javascript">
function form1_submit() {
    var workorder_name = $('#workorder_name').val();
    if (workorder_name.length == 0) {
        layer.tips('请填写工单名称', '#workorder_name');
        return false;
    }
    var workorder_content = $('#workorder_content').val();
    if (workorder_content.length == 0) {
        layer.tips('请填写工单内容', '#workorder_content');
        return false;
    }
    var department = $('#department').val();
    if (department.length == 0) {
        layer.tips('请选择指定部门', '#department');
        return false;
    }
}
</script>
</html>
